String[].Sort (gb)
Function Sort ( [ Mode As Integer ] ) As String[]
数组元素排序。
Mode 参数是下列常数的组合:
示例
Dim S as String
Dim SSS as String[]=["abcdefghij", "1234567890", "ABCDEFGHIJ"]
'
For each S in SSS.sort(gb.Ascent)
Print S
Next
' The empty set of parentheses is REQUIRED when sort is called
' without the optional mode parameter and is expected to return
' an array.
For each S in SSS.sort()
Print S
Next
' The empty set of parentheses is NOT required to sort the array
' without returning anything.
SSS.sort
For each S in SSS
Print S
Next
' all three examples print the following:
1234567890
ABCDEFGHIJ
abcdefghij
参见